projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a684509
)
stack: Clip animation drawing
author
Benjamin Otte
<otte@redhat.com>
Thu, 21 Jan 2016 00:44:47 +0000
(
01:44
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 22 Jan 2016 12:46:01 +0000
(13:46 +0100)
We use cairo_paint() when doing that and we don't want to overdraw the
content area.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index f7654090ee52b76c653cdfcaedf3937b864f7b66..2effc1f906943d50eb72dda02e6d476d56fab57d 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-2148,6
+2148,12
@@
gtk_stack_render (GtkCssGadget *gadget,
cairo_destroy (pattern_cr);
}
+ cairo_rectangle (cr,
+ 0, 0,
+ gtk_widget_get_allocated_width (widget),
+ gtk_widget_get_allocated_height (widget));
+ cairo_clip (cr);
+
switch (priv->active_transition_type)
{
case GTK_STACK_TRANSITION_TYPE_CROSSFADE: